package team.you.ticket.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import team.you.ticket.pojo.Result;
import team.you.ticket.service.TicketLogService;

@Controller
@RequestMapping("/ticketLogInfo")
public class TicketLogCtrl {
    @Autowired
    private TicketLogService ticketLogService;

    @RequestMapping("/getAllLog")
    @ResponseBody
    private Result getAllLog(Integer page, Integer limit)
    {
        return ticketLogService.getAllLog(page,limit);
    }
    @RequestMapping("/selectByLike")
    @ResponseBody
    private Result selectByLike(String value,Integer page, Integer limit)
    {
        return ticketLogService.selectByLike(value,page,limit);
    }
    @ResponseBody
    @RequestMapping("/echarts")
    private Result echarts()
    {
        return ticketLogService.echarts();
    }
    @RequestMapping("/progress")
    @ResponseBody
    private Result progress()
    {
        return ticketLogService.progress();
    }
}
